package com.xiaoshuidi.cloud.module.finance.controller.admin.finance.vo.flow;

import com.xiaoshuidi.cloud.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static com.xiaoshuidi.cloud.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

/**
 * 管理后台 - 交易流水 Request VO
 */
@Schema(description = "管理后台 - 交易流水 Request VO")
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class FinanceMoneyFlowPageReqVO extends PageParam {
    /**
     * 交易日期
     */
    @Schema(description = "交易日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] tradeTime;
    /**
     * 操作日期
     */
    @Schema(description = "操作日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] payTime;
    /**
     * 公寓id
     */
    @Schema(description = "公寓id")
    private Long[] apartmentId;

    /**
     * 交易对象
     */
    @Schema(description = "交易对象")
    private String trader;
    /**
     * 资金流向
     */
    @Schema(description = "资金流向: 0流入1流出")
    private Integer direction;
    /**
     * 交易方式
     */
    @Schema(description = "交易方式")
    private String[] payMethod;
    /**
     * 经办人姓名
     */
    @Schema(description = "经办人姓名")
    private String operator;
    /**
     * 交易来源
     */
    @Schema(description = "交易来源 ONLINE/OFFLINE")
    private String sourceFrom;

    @Schema(description = "状态")
    private String status;

    @Schema(description = "输入框输入")
    private String keyword;
    @Schema(description = "主体0租客1企业")
    private Integer subject;

    @Schema(description = "关联业务id")
    private String sourceBizId;
    @Schema(description = "关联业务类型RENT_ORDER(\"账单\"), ROOM_RESERVE(\"房源预定\"), ACCOUNT_RECHARGE(\"账户充值\"), OWNER_ORDER(\"业主合同\"),COMPANY_RENT_ORDER(\"企业账单\"), SETTLEMENT_BILL(\"清算单\");")
    private String sourceBizType;

    /**
     * 交易流水号
     */
    @Schema(description = "交易流水号")
    private String flowNo;

    /**
     * 账单编号
     */
    @Schema(description = "账单编号")
    private String roomRentOrderNo;

    /**
     * 费项类型
     */
    @Schema(description = "费项类型")
    private String feeType;
}
